var app=getApp();
var json3=require('../../json/json3.js');
Page({
  onLoad(){
    this.setData({ newslist: json3.newslist});
    let param={};
    param['newslist['+0+'].text'] ='新人大礼包活动...';
    this.setData( param)
  },
  onShow(){
    let token = wx.getStorageSync('token');
    if (token === "") { this.setData({ login: false }) }
    else { this.setData({ login: true }) }
  },
  data:{
    login:false
  },
  go_item(e) {//去搜索
    wx.showToast({title: '频道暂未开通~',icon:'none',duration:1000})
  },
})